﻿app.controller('CarController', ['$scope', '$http', 'toaster', function ($scope, $http, toaster) {
    $http({
        url: '/api/Car/',
        method: 'GET'
    }).success(function (data) {
        toaster.pop('success', "Get Cars", data);
        toaster.pop('success', "Role Info", sessionStorage.getItem('role'));
    }).error(function (data, status) {
        toaster.pop('error', "Failed", status);
    });
}]);